<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: mets::threshold_termination_criteria类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classmets_1_1threshold__termination__criteria.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classmets_1_1threshold__termination__criteria-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">mets::threshold_termination_criteria类 参考<div class="ingroups"><a class="el" href="group__common.html">Common components</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Termination criteria based on cost value  
 <a href="classmets_1_1threshold__termination__criteria.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="termination-criteria_8hh_source.html">termination-criteria.hh</a>&gt;</code></p>
<div class="dynheader">
类 mets::threshold_termination_criteria 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classmets_1_1threshold__termination__criteria.png" usemap="#mets::threshold_5Ftermination_5Fcriteria_map" alt=""/>
  <map id="mets::threshold_5Ftermination_5Fcriteria_map" name="mets::threshold_5Ftermination_5Fcriteria_map">
<area href="classmets_1_1termination__criteria__chain.html" title="Function object expressing a termination criteria" alt="mets::termination_criteria_chain" shape="rect" coords="0,0,210,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a8287a01a3f6452ca9865ba66efcc4422"><td class="memItemLeft" align="right" valign="top"><a id="a8287a01a3f6452ca9865ba66efcc4422"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>threshold_termination_criteria</b> (gol_type level, gol_type epsilon=1e-7)</td></tr>
<tr class="separator:a8287a01a3f6452ca9865ba66efcc4422"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59b1dc1e59d3a4e30fb06cbc6b80076f"><td class="memItemLeft" align="right" valign="top"><a id="a59b1dc1e59d3a4e30fb06cbc6b80076f"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>threshold_termination_criteria</b> (<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> *next, gol_type level, gol_type epsilon=1e-7)</td></tr>
<tr class="separator:a59b1dc1e59d3a4e30fb06cbc6b80076f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e079a8968d28a7d0215716cdb8af6fc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1threshold__termination__criteria.html#a5e079a8968d28a7d0215716cdb8af6fc">operator()</a> (const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;fs)</td></tr>
<tr class="memdesc:a5e079a8968d28a7d0215716cdb8af6fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alternate function that decides if we shoud terminate the search process  <a href="classmets_1_1threshold__termination__criteria.html#a5e079a8968d28a7d0215716cdb8af6fc">更多...</a><br /></td></tr>
<tr class="separator:a5e079a8968d28a7d0215716cdb8af6fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5516a6a9c634a7ee18578a794ff9b784"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1threshold__termination__criteria.html#a5516a6a9c634a7ee18578a794ff9b784">reset</a> ()</td></tr>
<tr class="memdesc:a5516a6a9c634a7ee18578a794ff9b784"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset the criterion to its initial state.  <a href="classmets_1_1threshold__termination__criteria.html#a5516a6a9c634a7ee18578a794ff9b784">更多...</a><br /></td></tr>
<tr class="separator:a5516a6a9c634a7ee18578a794ff9b784"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classmets_1_1termination__criteria__chain"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classmets_1_1termination__criteria__chain')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classmets_1_1termination__criteria__chain.html">mets::termination_criteria_chain</a></td></tr>
<tr class="memitem:ab8072803ee53f230d9f557e10f9640ea inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1termination__criteria__chain.html#ab8072803ee53f230d9f557e10f9640ea">termination_criteria_chain</a> (<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> *next=0)</td></tr>
<tr class="memdesc:ab8072803ee53f230d9f557e10f9640ea inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classmets_1_1termination__criteria__chain.html#ab8072803ee53f230d9f557e10f9640ea">更多...</a><br /></td></tr>
<tr class="separator:ab8072803ee53f230d9f557e10f9640ea inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dd6cdfaace32e64df1944f27cd18da6 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="a0dd6cdfaace32e64df1944f27cd18da6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1termination__criteria__chain.html#a0dd6cdfaace32e64df1944f27cd18da6">termination_criteria_chain</a> (const <a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> &amp;)</td></tr>
<tr class="memdesc:a0dd6cdfaace32e64df1944f27cd18da6 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="mdescLeft">&#160;</td><td class="mdescRight">purposely not implemented (see Effective C++) <br /></td></tr>
<tr class="separator:a0dd6cdfaace32e64df1944f27cd18da6 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6eb6c6c7d0be43914a0686c5f9740dd4 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="a6eb6c6c7d0be43914a0686c5f9740dd4"></a>
<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> &amp;)</td></tr>
<tr class="separator:a6eb6c6c7d0be43914a0686c5f9740dd4 inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0dfb2f9bc6e3ce2e66bed297f86880cb inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="a0dfb2f9bc6e3ce2e66bed297f86880cb"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmets_1_1termination__criteria__chain.html#a0dfb2f9bc6e3ce2e66bed297f86880cb">~termination_criteria_chain</a> ()</td></tr>
<tr class="memdesc:a0dfb2f9bc6e3ce2e66bed297f86880cb inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor. <br /></td></tr>
<tr class="separator:a0dfb2f9bc6e3ce2e66bed297f86880cb inherit pub_methods_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:abb3ef57c300a3ad009bf39a1340b9584"><td class="memItemLeft" align="right" valign="top"><a id="abb3ef57c300a3ad009bf39a1340b9584"></a>
gol_type&#160;</td><td class="memItemRight" valign="bottom"><b>level_m</b></td></tr>
<tr class="separator:abb3ef57c300a3ad009bf39a1340b9584"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64ece81b50846d91fa9f78420f173175"><td class="memItemLeft" align="right" valign="top"><a id="a64ece81b50846d91fa9f78420f173175"></a>
gol_type&#160;</td><td class="memItemRight" valign="bottom"><b>epsilon_m</b></td></tr>
<tr class="separator:a64ece81b50846d91fa9f78420f173175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classmets_1_1termination__criteria__chain"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classmets_1_1termination__criteria__chain')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classmets_1_1termination__criteria__chain.html">mets::termination_criteria_chain</a></td></tr>
<tr class="memitem:aaccffc670c01236af30df2c2e05f5e3b inherit pro_attribs_classmets_1_1termination__criteria__chain"><td class="memItemLeft" align="right" valign="top"><a id="aaccffc670c01236af30df2c2e05f5e3b"></a>
<a class="el" href="classmets_1_1termination__criteria__chain.html">termination_criteria_chain</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>next_m</b></td></tr>
<tr class="separator:aaccffc670c01236af30df2c2e05f5e3b inherit pro_attribs_classmets_1_1termination__criteria__chain"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Termination criteria based on cost value </p>
<p>This termination criteria terminates the tabu-search when a certain threshold is reached </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a5e079a8968d28a7d0215716cdb8af6fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e079a8968d28a7d0215716cdb8af6fc">&#9670;&nbsp;</a></span>operator()()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool mets::threshold_termination_criteria::operator() </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classmets_1_1feasible__solution.html">feasible_solution</a> &amp;&#160;</td>
          <td class="paramname"><em>fs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Alternate function that decides if we shoud terminate the search process </p>
<p>(chain of responsibility)</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fs</td><td>The current working solution. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>True if we shoud terminate </dd></dl>

<p>重载 <a class="el" href="classmets_1_1termination__criteria__chain.html#ab9eb6f84a9ce3afff792ca1189ce3410">mets::termination_criteria_chain</a> .</p>
<div class="fragment"><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    { </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;      mets::gol_type current_cost = </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">dynamic_cast&lt;</span><span class="keyword">const </span>evaluable_solution&amp;<span class="keyword">&gt;</span>(fs).cost_function();</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;      </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;      <span class="keywordflow">if</span>(current_cost &lt; level_m + epsilon_m) </div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;      </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;      <span class="keywordflow">return</span> <a class="code" href="classmets_1_1termination__criteria__chain.html#ab9eb6f84a9ce3afff792ca1189ce3410">termination_criteria_chain::operator()</a>(fs); </div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    }</div>
<div class="ttc" id="aclassmets_1_1termination__criteria__chain_html_ab9eb6f84a9ce3afff792ca1189ce3410"><div class="ttname"><a href="classmets_1_1termination__criteria__chain.html#ab9eb6f84a9ce3afff792ca1189ce3410">mets::termination_criteria_chain::operator()</a></div><div class="ttdeci">virtual bool operator()(const feasible_solution &amp;fs)</div><div class="ttdoc">Alternate function that decides if we shoud terminate the search process</div><div class="ttdef"><b>Definition:</b> termination-criteria.hh:247</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a5516a6a9c634a7ee18578a794ff9b784"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5516a6a9c634a7ee18578a794ff9b784">&#9670;&nbsp;</a></span>reset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void mets::threshold_termination_criteria::reset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reset the criterion to its initial state. </p>
<p>(chain of responsibility) </p>

<p>重载 <a class="el" href="classmets_1_1termination__criteria__chain.html#a7260e2e682a458d1bd9e2fb4ea6626e8">mets::termination_criteria_chain</a> .</p>
<div class="fragment"><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    { <a class="code" href="classmets_1_1termination__criteria__chain.html#a7260e2e682a458d1bd9e2fb4ea6626e8">termination_criteria_chain::reset</a>(); }</div>
<div class="ttc" id="aclassmets_1_1termination__criteria__chain_html_a7260e2e682a458d1bd9e2fb4ea6626e8"><div class="ttname"><a href="classmets_1_1termination__criteria__chain.html#a7260e2e682a458d1bd9e2fb4ea6626e8">mets::termination_criteria_chain::reset</a></div><div class="ttdeci">virtual void reset()</div><div class="ttdoc">Reset the criterion to its initial state.</div><div class="ttdef"><b>Definition:</b> termination-criteria.hh:257</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>recognition/include/pcl/recognition/3rdparty/metslib/<a class="el" href="termination-criteria_8hh_source.html">termination-criteria.hh</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>mets</b></li><li class="navelem"><a class="el" href="classmets_1_1threshold__termination__criteria.html">threshold_termination_criteria</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
